package com.woniu.dao;

import com.woniu.pojo.ServerComments;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ServerCommentsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ServerComments record);

    int insertSelective(ServerComments record);

    ServerComments selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ServerComments record);

    int updateByPrimaryKey(ServerComments record);

    @Select("select * from srver_comments where server_id=${id}")
    List<ServerComments> getCommentsByServiceId(Long id);

    @Select("select * from server_comments where user_id=${id}")
    List<ServerComments> getCommentsByUserId(Long id);
}